package com.starsoft.frame.base.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * BaseJob entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "base_job")
public class BaseJob implements java.io.Serializable {

	// Fields

	private Integer jobId;
	private String jobCode;
	private String jobName;
	private String jobClass;
	private String cron;
	private Integer intervalMinute;
	private Boolean isOpen;

	// Constructors

	/** default constructor */
	public BaseJob() {
	}

	/** full constructor */
	public BaseJob(String jobCode, String jobName, String jobClass, String cron, Integer intervalMinute, Boolean isOpen) {
		this.jobCode = jobCode;
		this.jobName = jobName;
		this.jobClass = jobClass;
		this.cron = cron;
		this.intervalMinute = intervalMinute;
		this.isOpen = isOpen;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "jobId", unique = true, nullable = false)
	public Integer getJobId() {
		return this.jobId;
	}

	public void setJobId(Integer jobId) {
		this.jobId = jobId;
	}

	@Column(name = "jobCode", length = 20)
	public String getJobCode() {
		return this.jobCode;
	}

	public void setJobCode(String jobCode) {
		this.jobCode = jobCode;
	}

	@Column(name = "jobName", length = 50)
	public String getJobName() {
		return this.jobName;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}

	@Column(name = "jobClass", length = 50)
	public String getJobClass() {
		return this.jobClass;
	}

	public void setJobClass(String jobClass) {
		this.jobClass = jobClass;
	}

	@Column(name = "cron", length = 50)
	public String getCron() {
		return this.cron;
	}

	public void setCron(String cron) {
		this.cron = cron;
	}

	@Column(name = "intervalMinute")
	public Integer getIntervalMinute() {
		return this.intervalMinute;
	}

	public void setIntervalMinute(Integer intervalMinute) {
		this.intervalMinute = intervalMinute;
	}

	@Column(name = "isOpen")
	public Boolean getIsOpen() {
		return this.isOpen;
	}

	public void setIsOpen(Boolean isOpen) {
		this.isOpen = isOpen;
	}

}